# -*- coding: utf-8 -*-
class Circle:
    def __init__(self,r):
        self.r=r
    def get_area(self):
        return 3.14*pow(self.r,2)
    def get_perimeter(self,r):
        return 2*3.14*self.r
r=input('输入圆的半径')
c=Circle(r)#创建对象
area=c.get_area()
perimeter=c.get_perimeter()
print('圆的面积为',area)
print('圆的周长为',perimeter)
